import request from "../utils/request.js"

/**
 * 获取用户列表
 * @param {*} data
 */
export const getUserList = (data) => {
    return request({
        url: "/system/user/page",
        method: "get",
        data
    })
}

/**
 * 根据用户名查询用户列表
 * @param {*} data
 */
export const getUserListByUserName = (data) => {
    return request({
        url: `/system/user/${data}`,
        method: "get",
    })
}